﻿using Microsoft.EntityFrameworkCore.Storage;

namespace PersonalWebsite.Domain.Abstract.Transactions
{
    public interface ITransaction
    {

        IDbContextTransaction CurrentTransaction { get; }

        Task<IDbContextTransaction> BeginTransaction();

        Task CommitTransaction();

        Task RollbackTransaction();

        bool IsActiveTransaction();

    }
}
